import 'package:dio/dio.dart';

/// 请求时error的描述
class RequestErrorBean extends DioError {
  int code;
  String msg;
  dynamic data;

  RequestErrorBean(int code, String msg, dynamic data) {
    this.code = code;
    this.msg = msg;
    this.data = data;
  }

  RequestErrorBean.fromJsonMap(Map<String, dynamic> map)
      : code = map["code"],
        msg = map["msg"],
        data = map["data"];

  @override
  String toString() {
    return 'RequestErrorBean{code: $code, msg: $msg, data: $data}';
  }
}
